Skip to content

Show country in CLI stats and events - #1

Merged
dannyshmueli merged 2 commits into
mainfrom
feat/country-stats
Oct 9, 2026
Merged

dannyshmueli merged 2 commits into
mainfrom
feat/country-stats

Conversation

@dannyshmueli

Copy link
Copy Markdown
Member

stats currently omits country groups, and events hides the top-level country already returned by the API. Print a Countries section with each group's raw events and unique users, and display country beside each event. Missing country displays as Unknown; stats notes that users may appear in multiple countries.

Requires Hosted's new /stats country field for the stats section. Older responses without it keep the existing output. The events change uses the existing API contract.

Validation: 178 tests pass, including command-level rendering against mock HTTP responses with known/unknown countries and unchanged event properties.

Release after the Hosted API update. Merge this change, bump the CLI version, and publish through the repository's manual npm/OTP release procedure; pushing or merging this PR alone does not publish a new CLI package.

@dannyshmueli
dannyshmueli marked this pull request as ready for review October 9, 2026 05:42
@dannyshmueli
dannyshmueli merged commit 85e0e66 into main Oct 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant